package com.example.esdemo.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author Cary
 * @date 2022/6/21
 */
@Data
@TableName("post")
public class Post {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField("create_time")
    private Date createTime;
}
